#ifndef APPLYFRIENDITEM_H
#define APPLYFRIENDITEM_H
#include "listitembase.h"
#include <QWidget>
#include <QSize>
#include "searchdata.h"
namespace Ui {
class ApplyFriendItem;
}

class ApplyFriendItem : public ListItemBase
{
    Q_OBJECT

public:
    explicit ApplyFriendItem(QWidget *parent = nullptr);
    ~ApplyFriendItem();

    QSize sizeHint() const override{
        return QSize(250,80);
    }
    void showBtn(bool bshow);
    int getId();
    void setApplyInfo(std::shared_ptr<ApplyInfo> apply_info);
private:
    Ui::ApplyFriendItem *ui;
    std::shared_ptr<ApplyInfo> _apply_info;
    bool _added;  //当前apply_info是否已添加
signals:
    void sig_auth_friend(std::shared_ptr<ApplyInfo> apply_info);
};

#endif // APPLYFRIENDITEM_H
